package com.zpark.service.impl;

import com.zpark.dao.IAccountDao;
import com.zpark.pojo.Account;
import com.zpark.service.IAccountService;

import java.sql.SQLException;
import java.util.List;

/**
 * 业务层实现类
 */
public class AccountServiceImpl implements IAccountService {

    private IAccountDao accountDao;

    public void setAccountDao(IAccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public List<Account> all() throws SQLException {
        return accountDao.finAll();
    }
}
